﻿
using BCCommon;
using BCDto.Trading.SaleContractReceiptRecord;
using System;
using System.Collections.Generic;

namespace BCService.Trading.SaleContractReceiptRecord
{
    /// <summary>
    /// 销售合同收款记录
    /// </summary>
    public interface ISaleContractReceiptRecordService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="saleContractReceiptRecordId">销售合同收款记录Id</param>
        bool Exists(long saleContractReceiptRecordId);
        /// <summary>
        /// 添加销售合同收款记录
        /// </summary>
        /// <param name="requestDto">销售合同收款记录信息</param>
        SaleContractReceiptRecordDto Add(SaleContractReceiptRecordRequestDto requestDto);
        /// <summary>
        /// 更新销售合同收款记录
        /// </summary>
        /// <param name="putDto">销售合同收款记录信息</param>
        SaleContractReceiptRecordDto Update(SaleContractReceiptRecordPutDto putDto);
        /// <summary>
        /// 删除销售合同收款记录
        /// </summary>
        /// <param name="saleContractReceiptRecordId">销售合同收款记录Id</param>
        bool Delete(long saleContractReceiptRecordId);
        /// <summary>
        /// 获取销售合同收款记录
        /// </summary>
        /// <param name="saleContractReceiptRecordId">销售合同收款记录Id</param>
        SaleContractReceiptRecordDto Get(long saleContractReceiptRecordId);
        /// <summary>
        /// 获取销售合同收款记录列表
        /// </summary>
        IEnumerable<SaleContractReceiptRecordDto> GetList();
        /// <summary>
        /// 获取销售合同收款记录分页列表
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">销售合同收款记录每页数据条数</param>
        PageableList<SaleContractReceiptRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}